package com.gqqx.weather.runnner;


import com.gqqx.weather.controller.TestClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 初始化程序
 */
@Component
public class ViewCountRunner implements CommandLineRunner {

    @Autowired
    private TestClient testClient;

    @Override
    public void run(String... args) throws Exception {
        //项目初始化直接调用登录认证
        testClient.RequestLogin();
    }
}
